<template>
    <h1>登录</h1>
    <button @click="submit">登录</button>
</template>

<script>
    export default {
        name: "login",
        methods: {
            submit(){
                // 发送请求
                // <router-link to="/main"></router-link>
                this.$router.push("/main");
                // this.$router.replace();
            }
        }

    }

</script>


